<?php
namespace Forms\Filter;

use Pinenut\Form\Filter;

class ReferenceManyAction extends Filter
{
	public function run()
	{
		$result = explode(',', $this->request->value);
		array_map('trim', $result);
		$result = array_filter($result, 'strlen');
		foreach ($result as &$r) {
			$r = ['_ref' => $r];
		}
		return $result;
	}
}